package com.meizhao.api.utils;


public enum ResultCode {

	SUCCESS(0, "Success"),
	FAILED(-1, "Failed"),
	ERROR(-2, "Error"),
	EXCEPTION(-3, "Exception"),
	NOPERMISSION(-4, "NoPermission"),
	UNABLEUSER(-5, "UnavailableUser"),
	REPEATSUBMIT(-6, "NoRepeatRequest"),
	SERVICEMAINTAINING(-7, "ServiceMaintaining");


	private int code;

	private String msg;

	private ResultCode(int code, String msg){
		this.code = code;
		this.msg = msg;
	}
	
	public int getCode(){
		return this.code;
	}

	public String getMsg() {return this.msg; }
}
